home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Portable Patmos / usr / include / assert.h < prev    next >
Encoding:
Text File  |  1994-11-08  |  2.4 KB  |  18 lines  |  [TEXT/R*ch]

  1. on, const char *file, int line));
  2. __END_DECLS
  3. #endif /* _ASSERT_H_ */
  4.  
  5. #undef assert
  6.  
  7. #ifdef NDEBUG
  8. #define    assert(expression)    ((void) 0)
  9. #else
  10. #ifdef __STDC__
  11. #define assert(expression) \
  12.   ((void) ((expression) ? 0 : (__assert(#expression, __FILE__, __LINE__), 0)))
  13. #else
  14. #define    assert(expression) \
  15.   ((void) ((expression) ? 0 : (__assert("expression", __FILE__, __LINE__), 0)))
  16. #endif
  17. #endif
  18.